//
//  AddressCell.m
//  ios-supplier
//
//  Created by Benlai on 15/8/4.
//  Copyright (c) 2015年 feynmanyuan. All rights reserved.
//

#import "AddressCell.h"
#warning 选择地址


@interface AddressCell()

- (IBAction)addressSelectState:(id)sender;

@end
@implementation AddressCell

- (void)awakeFromNib {
    
    self.receiverNameLabel.textColor = [UIColor colorFromHexValue:0X262626];
    self.receiverPhoneLabel.textColor = [UIColor colorFromHexValue:0X262626];
    self.addressNameLabel.textColor = [UIColor colorFromHexValue:0X676767];
    
    [self.addressSelectBtn setBackgroundImage: [UIImage imageNamed: @"iconUnselected"] forState: UIControlStateNormal];
    [self.addressSelectBtn setBackgroundImage: [UIImage imageNamed: @"iconSelected"] forState: UIControlStateSelected];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

- (IBAction)addressSelectState:(id)sender
{
    [self.addressSelectBtn setSelected: !self.addressSelectBtn.selected];
    [self.delegate didChooseAddressCell: self];
}
@end
